3.42 \(\int \sqrt{\csc ^2(x)} \, dx\)

Optimal. Leaf size=5 \[ -\sinh ^{-1}(\cot (x)) \]

[Out]

-ArcSinh[Cot[x]]

________________________________________________________________________________________

Rubi [A]  time = 0.0066315, antiderivative size = 5, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {4122, 215} \[ -\sinh ^{-1}(\cot (x)) \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[Csc[x]^2],x]

[Out]

-ArcSinh[Cot[x]]

Rule 4122

Int[((b_.)*sec[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Dist[(b*ff)
/f, Subst[Int[(b + b*ff^2*x^2)^(p - 1), x], x, Tan[e + f*x]/ff], x]] /; FreeQ[{b, e, f, p}, x] &&  !IntegerQ[p
]

Rule 215

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[(Rt[b, 2]*x)/Sqrt[a]]/Rt[b, 2], x] /; FreeQ[{a, b},
 x] && GtQ[a, 0] && PosQ[b]

Rubi steps

\begin{align*} \int \sqrt{\csc ^2(x)} \, dx &=-\operatorname{Subst}\left (\int \frac{1}{\sqrt{1+x^2}} \, dx,x,\cot (x)\right )\\ &=-\sinh ^{-1}(\cot (x))\\ \end{align*}

Mathematica [B]  time = 0.0133144, size = 28, normalized size = 5.6 \[ \sin (x) \sqrt{\csc ^2(x)} \left (\log \left (\sin \left (\frac{x}{2}\right )\right )-\log \left (\cos \left (\frac{x}{2}\right )\right )\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[Csc[x]^2],x]

[Out]

Sqrt[Csc[x]^2]*(-Log[Cos[x/2]] + Log[Sin[x/2]])*Sin[x]

________________________________________________________________________________________

Maple [B]  time = 0.181, size = 31, normalized size = 6.2 \begin{align*}{\frac{\sqrt{4}\sin \left ( x \right ) }{2}\sqrt{- \left ( \left ( \cos \left ( x \right ) \right ) ^{2}-1 \right ) ^{-1}}\ln \left ( -{\frac{-1+\cos \left ( x \right ) }{\sin \left ( x \right ) }} \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((csc(x)^2)^(1/2),x)

[Out]

1/2*4^(1/2)*sin(x)*(-1/(cos(x)^2-1))^(1/2)*ln(-(-1+cos(x))/sin(x))

________________________________________________________________________________________

Maxima [B]  time = 1.64639, size = 47, normalized size = 9.4 \begin{align*} -\frac{1}{2} \, \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} + 2 \, \cos \left (x\right ) + 1\right ) + \frac{1}{2} \, \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} - 2 \, \cos \left (x\right ) + 1\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((csc(x)^2)^(1/2),x, algorithm="maxima")

[Out]

-1/2*log(cos(x)^2 + sin(x)^2 + 2*cos(x) + 1) + 1/2*log(cos(x)^2 + sin(x)^2 - 2*cos(x) + 1)

________________________________________________________________________________________

Fricas [B]  time = 0.470925, size = 77, normalized size = 15.4 \begin{align*} -\frac{1}{2} \, \log \left (\frac{1}{2} \, \cos \left (x\right ) + \frac{1}{2}\right ) + \frac{1}{2} \, \log \left (-\frac{1}{2} \, \cos \left (x\right ) + \frac{1}{2}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((csc(x)^2)^(1/2),x, algorithm="fricas")

[Out]

-1/2*log(1/2*cos(x) + 1/2) + 1/2*log(-1/2*cos(x) + 1/2)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{\csc ^{2}{\left (x \right )}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((csc(x)**2)**(1/2),x)

[Out]

Integral(sqrt(csc(x)**2), x)

________________________________________________________________________________________

Giac [B]  time = 1.24539, size = 16, normalized size = 3.2 \begin{align*} \frac{\log \left ({\left | \tan \left (\frac{1}{2} \, x\right ) \right |}\right )}{\mathrm{sgn}\left (\sin \left (x\right )\right )} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((csc(x)^2)^(1/2),x, algorithm="giac")

[Out]

log(abs(tan(1/2*x)))/sgn(sin(x))